<template>
  <ul v-for="cmd in cmds">{{cmd}}</ul>
</template>

<script>
module.exports = {
  props: ['dir'],
  data: function () {
    return {
      cmds: [],
    }
  },
  created: function () {
    axios.get('/api/man/' + dir).then(res=>{
      this.cmds = res.data;
    });
  }
}
</script>